package sel.me.spring.boot159.web.config.feign;


//import feign.Client;
//import feign.Contract;
//import feign.codec.Decoder;
//import feign.codec.Encoder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;

/**
 * 使用工具方法build uaa的feign client，避免uaa的两个同名client配置冲突
 * @author shenenlu 2021年05月24日 下午15:16:04
 */
//@Configuration
public class FeignClientConfiguration extends FeignClientConfigurer {
//    public FeignClientConfiguration(Decoder decoder, Encoder encoder, Client client, Contract contract, LoadBalancedResourceDetails loadBalancedResourceDetails) {
//        super(decoder, encoder, client, contract, loadBalancedResourceDetails);
//    }
//
//    @Bean
//    UaaClient uaaClient() {
//        return super.buildAuthorizedFeignClient(UaaClient.class, "uaa");
//    }
//
//    @Bean
//    UaaUserClient uaaUserClient() {
//        return super.buildAuthorizedUserFeignClient(UaaUserClient.class, "uaa");
//    }

}
